﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Input;

namespace JHoelsch.Gui.View.View
{
    public class ExitCommand : ICommand
    {
        public bool CanExecute(Object paramter){return true;}
        public void Execute(Object paramter)
        {
            Application.Current.Shutdown();
        }
        public event EventHandler CanExecuteChanged;
    }
    public static class ApplicationCommands
    {
        private static ICommand exit = new ExitCommand();
        public static ICommand Exit
        {
            get { return exit; }
        }
    }
}
